package com.bike.bikeserver.controller.frontend;

import com.bike.bikeserver.common.core.domain.CommonResult;
import com.bike.bikeserver.service.IBikeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @version 1.0
 * @Author ZZX
 * @Date 2023/7/9 21:44
 */
@RestController
@RequestMapping("front/bike")
public class BikeController
{
    @Autowired
    IBikeService bikeService;

    /**
     * 获取所有单车名称
     * @return
     */
    @GetMapping("allBikeNames")
    public CommonResult getAllBikeName()
    {
        return bikeService.getAllBikeNames();
    }
}